package 构造;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-06-28
 * Time: 11:01
 */
class Father{
    public int a;
    public int b;

    public Father(int a, int b) {
        this.a = a;
        this.b = b;
    }
}
class Son extends Father{
    public int c;
    public int d;

    public Son(int a, int b, int c, int d) {
        super(a, b);

        this.c = c;
        this.d = d;
    }
}
public class Test {
    Son son = new Son(1,2,3,4);
}
